//
//  Music.swift
//  SwiftRx研究
//
//  Created by 世霖 on 2020/7/11.
//  Copyright © 2020 世霖. All rights reserved.
//

import UIKit

//struct Music {
//    let name:String
//    let singer:String
//    init(name:String , singer:String) {
//        self.name = name
//        self.singer = singer
//
//    }
//
//}
//
//extension Music : CustomStringConvertible {
//    var description: String {
//        return "name:\(name )  singer:\(singer)"
//    }
//}


/// 改造版本
struct Music {
    let name:String
    let singer:String
    init(name:String , singer:String) {
        self.name = name
        self.singer = singer
        
    }
    
}

extension Music : CustomStringConvertible {
    var description: String {
        return "name:\(name )  singer:\(singer)"
    }
}
